<form id="platform-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    {switch $group}
    {case meet}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.customer_telephone.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.customer_telephone.extend_html} type="number" name="row[customer_telephone]" value="{$configList.customer_telephone.value|htmlentities}" class="form-control" data-rule="{$configList.customer_telephone.rule}" data-tip="{$configList.customer_telephone.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.copyright.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.copyright.extend_html} type="text" name="row[copyright]" value="{$configList.copyright.value|htmlentities}" class="form-control" data-rule="{$configList.copyright.rule}" data-tip="{$configList.copyright.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.company_profile.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea {$configList.company_profile.extend_html} name="row[company_profile]" id="editor-{$configList.company_profile.name}" class="form-control editor" data-rule="{$configList.company_profile.rule}" rows="5" data-tip="{$configList.company_profile.tip}">{$configList.company_profile.value|htmlentities}</textarea>
        </div>
    </div>
    {/case}

    {case user}

    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 0;color: #666;padding-left: 20px;">{:__('新人注册赠送优惠券')}</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.register_status.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="configList.register_status.content" item="vo"}
                <label for="row[{$configList.register_status.name}]-{$key}"><input id="row[{$configList.register_status.name}]-{$key}" name="row[{$configList.register_status.name}]" type="radio" value="{$key}" data-tip="{$configList.register_status.tip}" {in name="key" value="$configList.register_status.value" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.register_send.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-info btn-register_coupon">{:__('添加优惠券')}</button>
            <table id="table_register" class="table table-striped table-bordered table-hover table-nowrap" style="margin-top: 10px;">
<!--                <thead>-->
<!--                <tr>-->
<!--                    <th>优惠券名称</th>-->
<!--                    <th>优惠内容</th>-->
<!--                </tr>-->
<!--                </thead>-->
<!--                <tbody>-->
<!--                <tr>-->
<!--                    <td></td>-->
<!--                    <td></td>-->
<!--                </tr>-->
<!--                </tbody>-->
            </table>
        </div>
    </div>

    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 0;color: #666;padding-left: 20px;">{:__('分享赠送优惠券')}</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.share_coupon_status.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="configList.share_coupon_status.content" item="vo"}
                <label for="row[{$configList.share_coupon_status.name}]-{$key}"><input id="row[{$configList.share_coupon_status.name}]-{$key}" name="row[{$configList.share_coupon_status.name}]" type="radio" value="{$key}" data-tip="{$configList.share_coupon_status.tip}" {in name="key" value="$configList.share_coupon_status.value" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.register_send.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-info btn-share_coupon">{:__('添加优惠券')}</button>
            <table id="table_share" class="table table-striped table-bordered table-hover table-nowrap" style="margin-top: 10px;">
<!--                <thead>-->
<!--                <tr>-->
<!--                    <th>优惠券名称</th>-->
<!--                    <th>优惠内容</th>-->
<!--                </tr>-->
<!--                </thead>-->
<!--                <tbody>-->
<!--                <tr>-->
<!--                    <td></td>-->
<!--                    <td></td>-->
<!--                </tr>-->
<!--                </tbody>-->
            </table>
        </div>
    </div>


    {/case}

    {case wxPayment}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mch_id.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mch_id.extend_html} type="text" name="row[mch_id]" value="{$configList.mch_id.value|htmlentities}" class="form-control" data-rule="{$configList.mch_id.rule}" data-tip="{$configList.mch_id.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mch_key.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mch_key.extend_html} type="text" name="row[mch_key]" value="{$configList.mch_key.value|htmlentities}" class="form-control" data-rule="{$configList.mch_key.rule}" data-tip="{$configList.mch_key.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.cert_client.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-{$configList.cert_client.name}" class="form-control" size="50" name="row[{$configList.cert_client.name}]" type="text" value="{$configList.cert_client.value|htmlentities}" data-tip="{$configList.cert_client.tip}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-{$configList.cert_client.name}" class="btn btn-danger faupload" data-input-id="c-{$configList.cert_client.name}" data-mimetype="*" data-multiple="{$configList.cert_client.type=='image'?'false':'true'}" data-preview-id="p-{$configList.cert_client.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-{$configList.cert_client.name}" class="btn btn-primary fachoose" data-input-id="c-{$configList.cert_client.name}" data-mimetype="*" data-multiple="{$configList.cert_client.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-{$configList.cert_client.name}"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-{$configList.cert_client.name}"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.cert_key.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-{$configList.cert_key.name}" class="form-control" size="50" name="row[{$configList.cert_key.name}]" type="text" value="{$configList.cert_key.value|htmlentities}" data-tip="{$configList.cert_key.tip}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-{$configList.cert_key.name}" class="btn btn-danger faupload" data-input-id="c-{$configList.cert_key.name}" data-mimetype="*" data-multiple="{$configList.cert_key.type=='image'?'false':'true'}" data-preview-id="p-{$configList.cert_key.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-{$configList.cert_key.name}" class="btn btn-primary fachoose" data-input-id="c-{$configList.cert_key.name}" data-mimetype="*" data-multiple="{$configList.cert_key.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-{$configList.cert_key.name}"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-{$configList.cert_key.name}"></ul>
        </div>
    </div>
    {/case}

    {case wxMiniProgram}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_name.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mini_name.extend_html} type="text" name="row[mini_name]" value="{$configList.mini_name.value|htmlentities}" class="form-control" data-rule="{$configList.mini_name.rule}" data-tip="{$configList.mini_name.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_appid.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mini_appid.extend_html} type="text" name="row[mini_appid]" value="{$configList.mini_appid.value|htmlentities}" class="form-control" data-rule="{$configList.mini_appid.rule}" data-tip="{$configList.mini_appid.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_appsecret.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mini_appsecret.extend_html} type="text" name="row[mini_appsecret]" value="{$configList.mini_appsecret.value|htmlentities}" class="form-control" data-rule="{$configList.mini_appsecret.rule}" data-tip="{$configList.mini_appsecret.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_logo.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-{$configList.mini_logo.name}" class="form-control" size="50" name="row[{$configList.mini_logo.name}]" type="text" value="{$configList.mini_logo.value|htmlentities}" data-tip="{$configList.mini_logo.tip}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-{$configList.mini_logo.name}" class="btn btn-danger faupload" data-input-id="c-{$configList.mini_logo.name}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{$configList.mini_logo.type=='image'?'false':'true'}" data-preview-id="p-{$configList.mini_logo.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-{$configList.mini_logo.name}" class="btn btn-primary fachoose" data-input-id="c-{$configList.mini_logo.name}" data-mimetype="image/*" data-multiple="{$configList.mini_logo.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-{$configList.mini_logo.name}"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-{$configList.mini_logo.name}"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.hot_search.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl {$configList.hot_search.extend_html} class="fieldlist" data-name="row[{$configList.hot_search.name}]">
                <dd>
                    <ins>{:isset($configList.hot_search["setting"]["key"])&&$configList.hot_search["setting"]["key"]?$configList.hot_search["setting"]["key"]:__('Array key')}</ins>
                    <ins>{:isset($configList.hot_search["setting"]["value"])&&$configList.hot_search["setting"]["value"]?$configList.hot_search["setting"]["value"]:__('Array value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[{$configList.hot_search.name}]" class="form-control hide" cols="30" rows="5">{$configList.hot_search.value|htmlentities}</textarea>
            </dl>
        </div>
    </div>

    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 0;color: #666;padding-left: 20px;">{:__('首页弹窗')}</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_pop_status.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="configList.mini_pop_status.content" item="vo"}
                <label for="row[{$configList.mini_pop_status.name}]-{$key}"><input id="row[{$configList.mini_pop_status.name}]-{$key}" name="row[{$configList.mini_pop_status.name}]" type="radio" value="{$key}" data-tip="{$configList.mini_pop_status.tip}" {in name="key" value="$configList.mini_pop_status.value" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_pop_path.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.mini_pop_path.extend_html} type="text" name="row[mini_pop_path]" value="{$configList.mini_pop_path.value|htmlentities}" class="form-control" data-rule="{$configList.mini_pop_path.rule}" data-tip="{$configList.mini_pop_path.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mini_pop_image.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-{$configList.mini_pop_image.name}" class="form-control" size="50" name="row[{$configList.mini_pop_image.name}]" type="text" value="{$configList.mini_pop_image.value|htmlentities}" data-tip="{$configList.mini_pop_image.tip}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-{$configList.mini_pop_image.name}" class="btn btn-danger faupload" data-input-id="c-{$configList.mini_pop_image.name}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{$configList.mini_pop_image.type=='image'?'false':'true'}" data-preview-id="p-{$configList.mini_pop_image.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-{$configList.mini_pop_image.name}" class="btn btn-primary fachoose" data-input-id="c-{$configList.mini_pop_image.name}" data-mimetype="image/*" data-multiple="{$configList.mini_pop_image.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-{$configList.mini_pop_image.name}"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-{$configList.mini_pop_image.name}"></ul>
        </div>
    </div>
    {/case}

    {case share}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.share_title.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.share_title.extend_html} type="text" name="row[share_title]" value="{$configList.share_title.value|htmlentities}" class="form-control" data-rule="{$configList.share_title.rule}" data-tip="{$configList.share_title.tip}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.share_image.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-{$configList.share_image.name}" class="form-control" size="50" name="row[{$configList.share_image.name}]" type="text" value="{$configList.share_image.value|htmlentities}" data-tip="{$configList.share_image.tip}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-{$configList.share_image.name}" class="btn btn-danger faupload" data-input-id="c-{$configList.share_image.name}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{$configList.share_image.type=='image'?'false':'true'}" data-preview-id="p-{$configList.share_image.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-{$configList.share_image.name}" class="btn btn-primary fachoose" data-input-id="c-{$configList.share_image.name}" data-mimetype="image/*" data-multiple="{$configList.share_image.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-{$configList.share_image.name}"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-{$configList.share_image.name}"></ul>
        </div>
    </div>
    {/case}
    {case order}
    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 20px;color: #666;padding-left: 20px;">{:__('Reservation order configuration')}</div>
    <div class="form-group pb-2">
        <label class="control-label col-xs-12 col-sm-3">{$configList.meet_order_auto_close.title}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input {$configList.meet_order_auto_close.extend_html} type="number" name="row[meet_order_auto_close]" value="{$configList.meet_order_auto_close.value|htmlentities}" class="form-control" data-rule="{$configList.meet_order_auto_close.rule}"/>
                <span class="input-group-addon">{:__('minute')}</span>
            </div>
            <div style="color: #808080;">{$configList.meet_order_auto_close.tip}</div>
        </div>
    </div>
<!--    <div class="form-group pb-2">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{$configList.meet_order_complete.title}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <div class="input-group">-->
<!--                <input {$configList.meet_order_complete.extend_html} type="number" name="row[meet_order_complete]" value="{$configList.meet_order_complete.value|htmlentities}" class="form-control" data-rule="{$configList.meet_order_complete.rule}"/>-->
<!--                <span class="input-group-addon">{:__('Hours')}</span>-->
<!--            </div>-->
<!--            <div style="color: #808080;">{$configList.meet_order_complete.tip}</div>-->
<!--        </div>-->
<!--    </div>-->

    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 20px;color: #666;padding-left: 20px;">{:__('Mall order configuration')}</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{$configList.mall_order_auto_close.title}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input {$configList.mall_order_auto_close.extend_html} type="number" name="row[mall_order_auto_close]" value="{$configList.mall_order_auto_close.value|htmlentities}" class="form-control" data-rule="{$configList.mall_order_auto_close.rule}"/>
                <span class="input-group-addon">{:__('minute')}</span>
            </div>
            <div style="color: #808080;">{$configList.mall_order_auto_close.tip}</div>
            <!--            <span class="msg-box">-->
            <!--                <span role="alert" class="msg-wrap n-tip">-->
            <!--                    <span class="n-icon"></span>-->
            <!--                    <span class="n-msg">分钟(注：不填写或0订单将不会自动关闭)</span>-->
            <!--                </span>-->
            <!--            </span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{$configList.mall_order_auto_confirm.title}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input {$configList.mall_order_auto_confirm.extend_html} type="number" name="row[mall_order_auto_confirm]" value="{$configList.mall_order_auto_confirm.value|htmlentities}" class="form-control" data-rule="{$configList.mall_order_auto_confirm.rule}"/>
                <span class="input-group-addon">{:__('day')}</span>
            </div>
            <div style="color: #808080;">{$configList.mall_order_auto_confirm.tip}</div>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{$configList.mall_order_auto_comment.title}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <div class="input-group">-->
<!--                <input {$configList.mall_order_auto_comment.extend_html} type="number" name="row[mall_order_auto_comment]" value="{$configList.mall_order_auto_comment.value|htmlentities}" class="form-control" data-rule="{$configList.mall_order_auto_comment.rule}"/>-->
<!--                <span class="input-group-addon">{:__('day')}</span>-->
<!--            </div>-->
<!--            <div style="color: #808080;">{$configList.mall_order_auto_comment.tip}</div>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{$configList.mall_order_comment_content.title}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <input {$configList.mall_order_comment_content.extend_html} type="text" name="row[mall_order_comment_content]" value="{$configList.mall_order_comment_content.value|htmlentities}" class="form-control" data-rule="{$configList.mall_order_comment_content.rule}"/>-->
<!--        </div>-->
<!--        <div style="color: #808080;">{$configList.mall_order_comment_content.tip}</div>-->
<!--    </div>-->
    {/case}

    {case services}
    <div class="pb-2 border-bottom" style="font-weight: 600;margin-bottom: 20px;color: #666;padding-left: 20px;">{:__('Tencent Maps configuration')}</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.tencent_map_key.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.tencent_map_key.extend_html} type="text" name="row[tencent_map_key]" value="{$configList.tencent_map_key.value|htmlentities}" class="form-control" data-rule="{$configList.tencent_map_key.rule}" />
        </div>
    </div>
    {/case}

    {case mall}
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{$configList.mall_sales_serve.title}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <dl {$configList.mall_sales_serve.extend_html} class="fieldlist" data-name="row[{$configList.mall_sales_serve.name}]">-->
<!--                <dd>-->
<!--                    <ins>{:isset($configList.mall_sales_serve["setting"]["key"])&&$configList.mall_sales_serve["setting"]["key"]?$configList.mall_sales_serve["setting"]["key"]:__('Array key')}</ins>-->
<!--                    <ins>{:isset($configList.mall_sales_serve["setting"]["value"])&&$configList.mall_sales_serve["setting"]["value"]?$configList.mall_sales_serve["setting"]["value"]:__('Array value')}</ins>-->
<!--                </dd>-->
<!--                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>-->
<!--                <textarea name="row[{$configList.mall_sales_serve.name}]" class="form-control hide" cols="30" rows="5">{$configList.mall_sales_serve.value|htmlentities}</textarea>-->
<!--            </dl>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.mall_refund_reason.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl {$configList.mall_refund_reason.extend_html} class="fieldlist" data-name="row[{$configList.mall_refund_reason.name}]">
                <dd>
                    <ins>{:isset($configList.mall_refund_reason["setting"]["key"])&&$configList.mall_refund_reason["setting"]["key"]?$configList.mall_refund_reason["setting"]["key"]:__('Array key')}</ins>
                    <ins>{:isset($configList.mall_refund_reason["setting"]["value"])&&$configList.mall_refund_reason["setting"]["value"]?$configList.mall_refund_reason["setting"]["value"]:__('Array value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[{$configList.mall_refund_reason.name}]" class="form-control hide" cols="30" rows="5">{$configList.mall_refund_reason.value|htmlentities}</textarea>
            </dl>
        </div>
    </div>
    {/case}

    {case wechat}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_app_id.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.wechat_app_id.extend_html} type="text" name="row[wechat_app_id]" value="{$configList.wechat_app_id.value|htmlentities}" class="form-control" data-rule="{$configList.wechat_app_id.rule}" data-tip="{$configList.wechat_app_id.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_secret.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.wechat_secret.extend_html} type="text" name="row[wechat_secret]" value="{$configList.wechat_secret.value|htmlentities}" class="form-control" data-rule="{$configList.wechat_secret.rule}" data-tip="{$configList.wechat_secret.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_token.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.wechat_token.extend_html} type="text" name="row[wechat_token]" value="{$configList.wechat_token.value|htmlentities}" class="form-control" data-rule="{$configList.wechat_token.rule}" data-tip="{$configList.wechat_token.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_aes_key.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.wechat_aes_key.extend_html} type="text" name="row[wechat_aes_key]" value="{$configList.wechat_aes_key.value|htmlentities}" class="form-control" data-rule="{$configList.wechat_aes_key.rule}" data-tip="{$configList.wechat_aes_key.tip}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_debug.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="configList.wechat_debug.content" item="vo"}
                <label for="row[{$configList.wechat_debug.name}]-{$key}"><input id="row[{$configList.wechat_debug.name}]-{$key}" name="row[{$configList.wechat_debug.name}]" type="radio" value="{$key}" data-tip="{$configList.wechat_debug.tip}" {in name="key" value="$configList.wechat_debug.value" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_log_level.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <select {$configList.wechat_log_level.extend_html} name="row[{$configList.wechat_log_level.name}]{$configList.wechat_log_level.type=='selects'?'[]':''}" class="form-control selectpicker" data-tip="{$configList.wechat_log_level.tip}" {$configList.wechat_log_level.type=='selects'?'multiple':''}>
                {foreach name="configList.wechat_log_level.content" item="vo"}
                <option value="{$key}" {in name="key" value="$configList.wechat_log_level.value" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$configList.wechat_oauth_callback.title}:</label>
        <div class="col-xs-12 col-sm-8">
            <input {$configList.wechat_oauth_callback.extend_html} type="text" name="row[wechat_oauth_callback]" value="{$configList.wechat_oauth_callback.value|htmlentities}" class="form-control" data-rule="{$configList.wechat_oauth_callback.rule}" data-tip="{$configList.wechat_oauth_callback.tip}"/>
        </div>
    </div>
    {/case}
    {/switch}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed" onclick="Fast.api.close();">{:__('Cancel')}</button>
        </div>
    </div>
</form>

<script>
    var registerCoupon = {$configList.register_send.value ? $configList.register_send.value : "''"};

    var shareCoupon = {$configList.share_coupon_send.value ? $configList.share_coupon_send.value : "''"};
</script>